package springAop_v1;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterAdvice implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        afterMethod();
    }

    private void afterMethod() {
        System.out.println("after method");
    }
}
